package cn.ljq.entity;

public class Task {

    private int kid;  //主键（自增长）
    private User user;  //教师编号（嵌套）
    private Clz clz;  //班级编号（嵌套）
    private Course course;  //课程编号（嵌套）

    public Task() {
        user = new User();  //创建空对象 避免控制针
        clz = new Clz();  //创建空对象 避免控制针
        course = new Course();  //创建空对象 避免控制针
    }

    public int getKid() {
        return kid;
    }

    public void setKid(int kid) {
        this.kid = kid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Clz getClz() {
        return clz;
    }

    public void setClz(Clz clz) {
        this.clz = clz;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    @Override
    public String toString() {
        return "Task{" +
                "kid=" + kid +
                ", user=" + user +
                ", clz=" + clz +
                ", course=" + course +
                '}' + "\r\n";
    }
}
